<?php
include('dbconnect.php');
$cli_id = (isset($_GET['cli_id']))? $_GET['cli_id'] : $cli_id;
$num_participant = (isset($_GET['num_participant']))? $_GET['num_participant'] : $num_participant;
?>

<?php
$sql = 'SELECT cli_id, cli_nom FROM clients ORDER BY cli_nom';
if ($result=$db->query($sql)){
	$nb = $result->num_rows;
	for ($j = 0; $j < $nb; $j++){
		$row = $result->fetch_assoc();
?>
	<option value='<?=$row['cli_id']?>' <?=($row['cli_id']==$cli_id)? "selected='selected'":''?>><?=htmlspecialchars($row['cli_nom'])?></option>
<?php	
	}
}
$result->free();
$db->disconnect();
?>
